<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SHOP 管理中心 - 品牌管理 </title>
<base href="__STATIC__/Admin/">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body>

<h1>
<span class="action-span"><a href="{:url('Admin/Brand/brand_add')}">添加品牌</a></span>
<span class="action-span1"><a href="{:url('Admin/Index/main')}">SHOP 管理中心</a> </span><span id="search_id" class="action-span1"> - 商品品牌 </span>
<div style="clear:both"></div>
</h1>

<div class="form-div">
  <form action="{:url('Admin/Brand/brand_list')}" method="post" name="searchForm">
    <img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH">
     <input type="text" name="brand_name" size="15">
    <input type="submit" value=" 搜索 " class="button">
  </form>
</div>

<!-- start brand list -->
<div class="list-div" id="listDiv">

  <table cellpadding="3" cellspacing="1">
    <tbody>
    <tr>
      <th>品牌名称</th>
      <th>品牌网址</th>
      <th>品牌描述</th>
      <th>排序</th>
      <th>是否显示</th>
      <th>操作</th>
    </tr>
    {foreach $list as $v}
        <tr>
      <td class="first-cell" align="center"><span style="float:right">
          <img src="__ROOT__{$v.brand_logo}" width="50" height="50" border="0" alt="品牌LOGO"></a>
        </span>
      <span title="点击修改内容">{$v.brand_name}</span>
      </td>
      <td><a href="http://www.nokia.com.cn/" target="_brank">{$v.site_url}</a></td>
      <td align="left" >{$v.brand_desc}</td>
      <td align="right"><span onclick="javascript:listTable.edit(this, 'edit_sort_order', 1)">{$v.sort}</span></td>
      <td align="center">
       {if condition="$v.is_show eq 1"}
        <img src="images/yes.gif" onclick="listTable.toggle(this, 'toggle_show', 1)">
     {else /} 
     <img src="images/no.gif" onclick="listTable.toggle(this, 'toggle_show', 1)">
      {/if}
      </td>
      <td align="center">
        <a href="brand.php?act=edit&amp;id=1" title="编辑">编辑</a> |
        <a href="javascript:;" onclick="listTable.remove(1, '你确认要删除选定的商品品牌吗？')" title="编辑">移除</a> 
      </td>
    </tr>
    {/foreach}
  </tbody></table>
  <div>{$list->render()}</div>
<!-- end brand list -->
</div>



<div id="footer">
  <div>版权所有 &copy; 2006-2013 软工教育 - 高级PHP - </div>
</div>

</body>
</html>